package com.zfy.tingshu.search.service;

import cn.hutool.json.JSONObject;
import com.zfy.tingshu.model.search.AlbumInfoIndex;
import com.zfy.tingshu.query.search.AlbumIndexQuery;
import com.zfy.tingshu.vo.search.AlbumSearchResponseVo;
import jakarta.json.JsonObject;

import java.util.List;
import java.util.Map;

public interface SearchService {


    /**
     * 根据albumId上架商品
     * @param albumId
     */
    void upperAlbum(Long albumId);

    /**
     * 根据albumId下架商品
     * @param albumId
     */
    void lowerAlbum(Long albumId);

    /**
     * 根据关键词检索
     * @param albumIndexQuery
     * @return
     */
    AlbumSearchResponseVo search(AlbumIndexQuery albumIndexQuery);


    List<String> completeSuggest(String keyword);

    /**
     * 根据一级分类Id获取置顶数据
     * @param category1Id
     * @return
     */
    List<Map<String, Object>> channel(Long category1Id);

    List<AlbumInfoIndex> findRankingList(Long category1Id, String rangking);

    void updateLatelyAlbumRanking();
}
